#include <my_head.h>

int main(int argc, const char *argv[]){
    printf("----start----\n");
    pid_t pid = 0;
    if(-1 == (pid = fork())){
        ERR_LOG("fork error");
    }else if(0 < pid){
        printf("我是父进程\n");
    }else if(0 == pid){
        printf("我是子进程\n");
    }
    printf("-----end-----\n");
    return 0;
}